<!DOCTYPE html>
<!--v1.6.7.2 RDPROJECT-510 cx 2013-12-10 start  -->
<html>
<#include "../head.html">
    <body>
    <table class="mc">
        <tr>
            <td class="mc-l">
                <!--左侧导航---{-->
                <div id="navPanelContainer">
                    <div class="system-logo cd"></div>
                    <!--管理员信息---{-->
                    <#include "../adminInfo.html">
                        <!--管理员信息---}-->
                        <div class="nav-wrap">
                            <#include "../report/left.html">
                        </div>
                </div>
                <!--左侧导航---}-->
            </td>
            <td class="mc-m">
                <div class="navToggle"></div>
            </td>
            <td class="mc-r">
                <!--顶部导航---{-->
                <#include "../topNav.html">
                    <!--顶部导航---}-->

                    <!--面包屑导航---{-->
                    <#assign moduleName="各标种借款期限统计">
                        <#include "banner.html">
                 <!--面包屑导航---}-->
                     <!--工具栏--}-->
                      <!--工具栏--{-->
			            <div id="toolbar" class="clearfix">
				            	<div class="toolbor-module export">
				            		<input type="button" onclick="exportxls()" value="导出报表" class="input-button export-btn"/>
				            	</div>
				            	<div class="toolbor-module search">
				                  	 <input type="button" value="搜索"  class="input-button" onclick="search();">
				                </div>
			                    <div class="toolbor-module search">
			                        <div style="height:22px;line-height:22px;float:left;">发标时间：</div>
			                        <input class="_search-value js-datetime" name="dotime1" id="dotime1" value="" size="15"/>
			                        <div style="height:22px;line-height:22px;float:left;margin:0 8px;"> 到 </div>
			                        <input class="_search-value js-datetime" name="dotime2" id="dotime2"  value=""  size="15"/>
			                    </div>
			                <div class="toolbor-module search">
                        	 	<div style="height:22px;line-height:22px;float:left;">类型：</div>
		                       	<div class="select-box" id="type">
		                            <div class="tag-select">全部</div>
		                            <ul class="tag-options">
		                               <li data-value="100" <#if type==100 >data-selected="selected"</#if> class="open-selected">全部</li>
		                               <li data-value="101" <#if type==101 >data-selected="selected"</#if>>秒还标</li>
		                               <li data-value="102" <#if type==102 >data-selected="selected"</#if>>信用标</li>
		                               <li data-value="103" <#if type==103 >data-selected="selected"</#if>>抵押标</li>
		                               <li data-value="104" <#if type==104 >data-selected="selected"</#if>>净值标</li>
		                               <li data-value="112" <#if type==112 >data-selected="selected"</#if>>担保标</li>
		                               <li data-value="110" <#if type==110 >data-selected="selected"</#if>>流转标</li>
		                            </ul>
		                        </div>
		                    </div>
			               </div>
                         <div id="main" class="clearfix">
			                <font color="red">默认显示当天数据！</font>
                            <form action="" method="post">
                                    <table class="data-list">
                                        <tr class="header">
                                         	<td>标名</td>
                                            <td>成交总额（万）</td>
                                            <td>发标笔数</td>
                                            <td>比例</td>
                                            <td>天标笔数</td>
                                            <td>月标笔数</td>
                                        </tr>
                                        <#list borrowlist as item>
                                        	<tr class="s">
                                        		<td>${item.name!}</td>
                                        		<td>${item.allTBMoney!}</td>
                                        		<td>${item.countFB!}</td>
                                        		<td>${item.bl!}</td>
                                        		<td>${item.tbCount!}</td>
                                        		<td>${item.ybCount!}</td>
                                        	</tr>
                                        </#list>
                                    </table>
                                <!--底部工具栏--}-->
                                </form>
                    	  	 <div id="bottomToolbar" class="clearfix">
	                   		 <div class="other-tool">
	                         <dl class="refresh-data">
	                            <dt class="refresh-data-icon"></dt>
	                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
	                         </dl>
	                         </div>
	                         <div class="container">
	             			   <#import "../../common/page.html" as pager>  
	         			     </div> 
	                     </div>
	                 </div>
            </td>
        </tr>
        <tr>
            <!--尾部--{-->
            <td colspan="3" class="mc-b"><#include "../foot.html"></td>
            <!--尾部--}-->
        </tr>
    </table>
<script type="text/javascript">
	$('#dotime1').val('${startDate}');
	$('#dotime2').val('${endDate}');
		var urls=window.location.href;
		var index=urls.indexOf("?");
		if(index>0){
		  urls=urls.substring(0,index);
		 }
		var xlsurl=urls+"?actionType=export";
	function search(){
		var search="";
		 var type = $("#type").find(".open-selected").attr("data-value");
         if (type!=null&&type!=""&&type!="undefine"){
        	 search += "&type="+type;
         }
		if($('#dotime1').val()!=null){
			search+="&dotime1="+$('#dotime1').val();
		}
		if($('#dotime2').val()!=null){
			search+="&dotime2="+$('#dotime2').val();
		}
		location.href=urls+"?search=true"+search;
	}
	
	function exportxls(){
		var search="";
		if($('#type').val()!=null){
			search+="&type="+$('#type').val();
		}
		if($('#dotime1').val()!=null){
			search+="&dotime1="+$('#dotime1').val();
		}
		if($('#dotime2').val()!=null){
			search+="&dotime2="+$('#dotime2').val();
		}
        location.href=xlsurl+search;
    }
</script>
    </body>
</html>
<#include "../jsPage.html">
<!--v1.6.7.2 RDPROJECT-510 cx 2013-12-10 end  -->